﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using CRM.GUI.QLKhachHang;
using BLL;
using DTO;

namespace CRM.GUI.QLKhachHang
{
    public partial class frmDivide : DevExpress.XtraEditors.XtraForm
    {
        BLsupervisor BLau = new BLsupervisor();

        public frmDivide()
        {
            InitializeComponent();

            CheckedState();
        }

        private void radAuto_CheckedChanged(object sender, EventArgs e)
        {
            CheckedState();
        }

        private void radAdvan_CheckedChanged(object sender, EventArgs e)
        {
            CheckedState();
        }

        void CheckedState()
        {
            if (radAuto.Checked == true)
            {
                panPhanChia.Controls.Clear();
                ucAutomatic f = new ucAutomatic();
                f.Height = panPhanChia.Height;
                f.Width = panPhanChia.Width;
                panPhanChia.Controls.Add(f);
            }
            else if (radAdvan.Checked == true)
            {
                panPhanChia.Controls.Clear();
                ucManual f = new ucManual();
                f.Height = panPhanChia.Height;
                f.Width = panPhanChia.Width;
                panPhanChia.Controls.Add(f);
            }
        }

        private void frmDivide_Load(object sender, EventArgs e)
        {

        }


    }
}